<?php
if(!isset($_SESSION))
{
	session_start();
}
$selectproject =mysql_query("SELECT p.IDProject, p.NameProject, p.Description, p.DateStart, p.DateComplete, p.IDManager, p.Status
 FROM pr_project p,pr_composition c, employee e  WHERE ((c.IDEmployee = '$id_employee' 
  AND e.IDEmployee = c.IDEmployee) or (p.IDManager='$id_employee' and e.IDEmployee=p.IDManager)) 
  AND p.IDProject = c.IDProject GROUP BY p.IDProject ORDER BY p.NameProject ASC");
?>

<div class="nav_top" style="width: 100%;">
	<div class="nav_tit"><?php echo $l_projectlist;?></div>
	<div class="rehome"><a href="mainPhone.php"><?php echo $l_menu?></a></div>
</div>
<div style="padding-top: 20px;">
<img src="images/line1.png" width="100%" />
<br style="clear:both" /><br />
<div class="main_app" style="background: white;padding: 50px;">
	<h2>
		<span class="top_col"></span>
			<?php while ($rows = mysql_fetch_array($selectproject)){
							$idproject = $rows[IDProject];
							$nameproject =$rows[NameProject];
							?>
		<img alt="" src="images/index_25.gif" style="margin-bottom:-5px;margin-right:5px;">	
			<a style="font-size: 13px;" href="project.php?projectDetail=project-detail&id=<?php echo $idproject ?>" ><?=$nameproject?></a><br /><br />
		<?php }?>
	</h2>
</div>
</div>